cmake_minimum_required(VERSION 2.8.3)
project(bag2map)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")

find_package(catkin REQUIRED COMPONENTS
  rosbag
  roscpp
  rospy
  sensor_msgs
  std_msgs
  tf
)

find_package(PCL REQUIRED)

include_directories(
  "include/toolkits"
	${catkin_INCLUDE_DIRS} 
	${PCL_INCLUDE_DIRS}
)

catkin_package(
  CATKIN_DEPENDS rosbag roscpp rospy sensor_msgs std_msgs tf
  DEPENDS PCL
  INCLUDE_DIRS include/toolkits
)

add_executable(bag2map src/bag2map.cpp)
target_link_libraries(bag2map ${catkin_LIBRARIES} ${PCL_LIBRARIES})
